.. _ocacommandset: 1.5.2.1 OcaCommandSet ====================== Class Hierarchy: :ref:`OcaRoot ` : :ref:`OcaDataset ` : :ref:`OcaProgram ` : :ref:`OcaCommandSet ` .. cpp:class:: OcaCommandSet: OcaProgram A command set. Child of **OcaProgram**. **Properties**: .. _ocacommandset_classid: .. cpp:member:: static const OcaClassID ClassID = "1.5.2.1" Number that uniquely identifies the class. Note that this differs from the object number, which identifies the instantiated object. This is a class property instead of an object property. This property will be overridden by each descendant class, in order to specify that class's ClassID. This property has id ``1.1``. .. _ocacommandset_classversion: .. cpp:member:: static const OcaClassVersionNumber ClassVersion = 2 Identifies the interface version of the class. Any change to the class definition leads to a higher class version. This property is an override of the **OcaRoot** property. This property has id ``1.2``. .. _ocacommandset_commands: .. cpp:member:: OcaList Commands The commands in the commandSet. This property has id ``4.1``. Properties inherited from :ref:`ocaprogram`: - :cpp:texpr:`OcaClassID` :ref:`OcaRoot::ClassID ` - :cpp:texpr:`OcaClassVersionNumber` :ref:`OcaRoot::ClassVersion ` - :cpp:texpr:`OcaBoolean` :ref:`OcaRoot::Lockable ` - :cpp:texpr:`OcaLockState` :ref:`OcaRoot::LockState ` - :cpp:texpr:`OcaONo` :ref:`OcaRoot::ObjectNumber ` - :cpp:texpr:`OcaString` :ref:`OcaRoot::Role ` - :cpp:texpr:`OcaClassID` :ref:`OcaDataset::ClassID ` - :cpp:texpr:`OcaClassVersionNumber` :ref:`OcaDataset::ClassVersion ` - :cpp:texpr:`OcaTime` :ref:`OcaDataset::LastModificationTime ` - :cpp:texpr:`OcaUint64` :ref:`OcaDataset::MaxSize ` - :cpp:texpr:`OcaString` :ref:`OcaDataset::Name ` - :cpp:texpr:`OcaONo` :ref:`OcaDataset::Owner ` - :cpp:texpr:`OcaBoolean` :ref:`OcaDataset::ReadOnly ` - :cpp:texpr:`OcaMimeType` :ref:`OcaDataset::Type ` - :cpp:texpr:`OcaClassID` :ref:`OcaProgram::ClassID ` - :cpp:texpr:`OcaClassVersionNumber` :ref:`OcaProgram::ClassVersion ` - :cpp:texpr:`OcaList` :ref:`OcaProgram::SupportedRunModes ` **Methods**: .. _ocacommandset_getcommands: .. cpp:function:: OcaStatus GetCommands(OcaList &Commands) Gets the list of commands in the commandset. This method has id ``4.1``. - :cpp:expr:`Commands`: Output parameter. .. _ocacommandset_setcommands: .. cpp:function:: OcaStatus SetCommands(OcaList Commands) Sets the list of commands in the commandset. This method has id ``4.2``. - :cpp:expr:`Commands`: Input parameter. .. _ocacommandset_getcommand: .. cpp:function:: OcaStatus GetCommand(OcaUint16 Index, OcaCommand &Command) Gets the command designated by the **Index** parameter. This method has id ``4.3``. - :cpp:expr:`Index`: Input parameter. - :cpp:expr:`Command`: Output parameter. .. _ocacommandset_setcommand: .. cpp:function:: OcaStatus SetCommand(OcaUint16 Index, OcaCommand Command) Replaces the command designated by the **Index** parameter. This method has id ``4.4``. - :cpp:expr:`Index`: Input parameter. - :cpp:expr:`Command`: Input parameter. .. _ocacommandset_insertcommand: .. cpp:function:: OcaStatus InsertCommand(OcaUint16 Index, OcaCommand Command) Inserts a command into the CommandSet after the command with the given **Index** value. This method has id ``4.5``. - :cpp:expr:`Index`: Input parameter. - :cpp:expr:`Command`: Input parameter. .. _ocacommandset_deletecommand: .. cpp:function:: OcaStatus DeleteCommand(OcaUint16 Index) Removes command with the given **Index** value from the commandset. This method has id ``4.6``. - :cpp:expr:`Index`: Input parameter. .. _ocacommandset_clear: .. cpp:function:: OcaStatus Clear() Removes all commands from the command set. This method has id ``4.7``. Methods inherited from :ref:`ocaprogram`: - :ref:`OcaProgram::GetClassIdentification ` - :ref:`OcaProgram::GetLockable ` - :ref:`OcaProgram::GetLockState ` - :ref:`OcaProgram::GetRole ` - :ref:`OcaProgram::SetLockNoWrite ` - :ref:`OcaProgram::SetLockNoReadWrite ` - :ref:`OcaProgram::Unlock ` - :ref:`OcaProgram::Clear ` - :ref:`OcaProgram::Close ` - :ref:`OcaProgram::GetDatasetSizes ` - :ref:`OcaProgram::GetLastModificationTime ` - :ref:`OcaProgram::GetName ` - :ref:`OcaProgram::GetOwner ` - :ref:`OcaProgram::GetReadOnly ` - :ref:`OcaProgram::GetType ` - :ref:`OcaProgram::OpenRead ` - :ref:`OcaProgram::OpenWrite ` - :ref:`OcaProgram::Read ` - :ref:`OcaProgram::SetName ` - :ref:`OcaProgram::SetReadOnly ` - :ref:`OcaProgram::SetType ` - :ref:`OcaProgram::Write ` - :ref:`OcaProgram::GetSupportedRunModes ` - :ref:`OcaProgram::SetSupportedRunModes `